/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 晓星航
 * Date: 2023-03-21
 * Time: 18:37
 */
public class TestDemo {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BTNode root = binaryTree.creatTree();
//        System.out.println(binaryTree.size2(root));
//        System.out.println();
//        System.out.println(binaryTree.getLeafNodeCount(root));
//        binaryTree.getLeafNodeCount1(root);
//        System.out.println(binaryTree.leafCount);
//        System.out.println(binaryTree.getLeafNodeCount2(root));
//        try {
//            BTNode ret = binaryTree.find(root,'E');
//            System.out.println(ret.val);
//        }catch (NullPointerException e) {
//            e.printStackTrace();
//            System.out.println("没有这个结点！");
//        }
        System.out.println("===============是否是完全二叉树==============");
        System.out.println(binaryTree.isCompleteTree(root));
    }
}
